tools/libxl: Infrastructure for reading a libxl migration v2 stream
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Fri, 12 Jun 2015 17:19:00 +0000 (18:19 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 15 Jul 2015 10:22:53 +0000 (11:22 +0100)
commitbf4c9d2d0c3fc4fbbf5240e19d21a78f2d0afe37
treec071682b319f0afb3cdca417a1b1301de56d2f30
parentd3ea9652585877a1431486786281a178b977c6b3
tools/libxl: Infrastructure for reading a libxl migration v2 stream

This contains the event machinery and state machines to read an act on
a non-checkpointed migration v2 stream (with the exception of the
xc_domain_restore() handling which is spliced later in a bisectable
way).

It also contains some boilerplate to help support checkpointed
streams, which shall be introduced in a later patch.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
v4:
 * Don't make _init() mandatory
 * Don't unilaterally clobber rc from datacopier callback
 * Comment adjustments
 * More assertions

v3: More descriptions of the internal state, shuffle function order, add
    an _init() call, condense error handling
tools/libxl/Makefile
tools/libxl/libxl_internal.h
tools/libxl/libxl_stream_read.c [new file with mode: 0644]